	<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%> 
	<html>
		<head>
<link href="common/common.css" type="text/css"	rel="stylesheet">
<script src="common/sortabletable.js"	type="text/javascript"></script>
<script src="common/common.js" type="text/javascript"></script>
<script type="text/javascript"	src="common/popcalendar.js"></script>
</head>
		<body>
			<div style="width:950px" id="rightlayout">
				<div style="text-align: left; color: red">
					<html:errors></html:errors>
				</div>
				<html:form action="/DeliveryOrderMainAction">
		<table style="color:#000066;background: url(images/qurybg.jpg) left top repeat-x;background-color:#C9DCE3;" width="100%" align="center">
			<tbody> 
			<tr>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="trueFalseMap" return="vipCustomFlagdicMap" />
					<td>VIP订单标准: </td><td> 
					 <html:select property="qVipCustomFlag">
						<html:option value="">请选择</html:option>
					    <html:options collection="vipCustomFlagdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
					<td>货物品名: </td><td> 
					<html:text property="qGoodsName" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="createrdicMap" />
					<td>录入人员: </td><td> 
					 <html:select property="qCreater">
						<html:option value="">请选择</html:option>
					    <html:options collection="createrdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="fetcherdicMap" />
					<td>取件人: </td><td> 
					 <html:select property="qFetcher">
						<html:option value="">请选择</html:option>
					    <html:options collection="fetcherdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
					</tr><tr>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="dispatcherdicMap" />
					<td>派送人员: </td><td> 
					 <html:select property="qDispatcher">
						<html:option value="">请选择</html:option>
					    <html:options collection="dispatcherdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="orderStatusMap" return="orderStatusdicMap" />
					<td>订单状态: </td><td> 
					 <html:select property="qOrderStatus">
						<html:option value="">请选择</html:option>
					    <html:options collection="orderStatusdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="schedulerdicMap" />
					<td>调度人员: </td><td> 
					 <html:select property="qScheduler">
						<html:option value="">请选择</html:option>
					    <html:options collection="schedulerdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
					<td>订单编号: </td><td> 
					<html:text property="qOrderNumber" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
					</tr><tr>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="ORDERTYPEMAP" return="orderTypedicMap" />
					<td>订单类型: </td><td> 
					 <html:select property="qOrderType">
						<html:option value="">请选择</html:option>
					    <html:options collection="orderTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
					<td>寄件人: </td><td> 
					<html:text property="qSender" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="dOrderPayTypeMap" return="payTypedicMap" />
					<td>付款类型: </td><td> 
					 <html:select property="qPayType">
						<html:option value="">请选择</html:option>
					    <html:options collection="payTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
					<td>订单日期: </td><td> 
					<html:text styleClass="textbox" size="20" property="qOrderDate" onfocus="popUpCalendar(this, document.forms[0].qOrderDate, 'yyyy-mm-dd',-1,-1,false);return false"></html:text>
				</td>
					</tr><tr>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="deliveryServiceTypeM" return="serviceTypedicMap" />
					<td>服务类型: </td><td> 
					 <html:select property="qServiceType">
						<html:option value="">请选择</html:option>
					    <html:options collection="serviceTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="substationMap" return="subStationdicMap" />
					<td>分站点: </td><td> 
					 <html:select property="qSubStation">
						<html:option value="">请选择</html:option>
					    <html:options collection="subStationdicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
					<td>收件人: </td><td> 
					<html:text property="qReceiver" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
					<td>始发地: </td><td> 
					<html:text property="qOriginLocation" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
					</tr><tr>
					<td>目的地: </td><td> 
					<html:text property="qDestLocation" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
				<td colspan="5" > </td>
				<td  align="left">
				<input type="button" name="query" class="button"
					value="查询" onclick="submitFrm(this.form,'<c:url
					value='DeliveryOrderMainAction.do?method=doQuery'/>')"/>
				</td>
			</tr>
			</tbody>
		</table>
					<input type="button" name="add" class="button"
					value="添加" onClick="redirect('<c:url
					value='DeliveryOrderMainAction.do?method=displayDeliveryOrderCreateScreen'/>')">
					<input type="button" name="delete" class="button"
					value="批量删除"
					onclick="confirmSubmit('是否删除',this.form,'<c:url
 					value='DeliveryOrderMainAction.do?method=batchDelete'/>')">
 					<br></br>
					<c:import url="/common/pager.jsp"></c:import>
						<table width="100%" class="sort-table" align="right" id="itemsList">
							<thead>
								<tr align="center">
									<td width="30px">
										<input onclick="checkBoxSelectAll('ids');" name="multipleSelect" type="checkbox"></input>
									</td>
										<td>订单状态</td>
										<td>订单编号</td>
										<td>订单类型</td>
										<td>寄件人</td>
										<td>付款类型</td>
										<td>订单日期</td>
										<td>服务类型</td>
										<td>分站点</td>
										<td>收件人</td>
										<td>始发地</td>
										<td>目的地</td>
									<td>操作</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach var='vo' items="${ITEMS_COLLECTION}">
								<tr onmouseout="changeColor(this,false,'orange');" onmouseover="changeColor(this,true,'orange')">
								<td width="5%"><input type="checkbox"
											name="ids" value="${vo.id}" /></td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="orderStatusMap" return="maporderStatus"/>${maporderStatus[vo.orderStatus]} 
								</td>
								<td width="">
								${vo.orderNumber}
								</td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="ORDERTYPEMAP" return="maporderType"/>${maporderType[vo.orderType]} 
								</td>
								<td width="">
								${vo.sender}
								</td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="dOrderPayTypeMap" return="mappayType"/>${mappayType[vo.payType]} 
								</td>
								<td width=""><fmt:formatDate value="${vo.orderDate}" pattern="yyyy-MM-dd" /></td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="deliveryServiceTypeM" return="mapserviceType"/>${mapserviceType[vo.serviceType]} 
								</td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="substationMap" return="mapsubStation"/>${mapsubStation[vo.subStation]} 
								</td>
								<td width="">
								${vo.receiver}
								</td>
								<td width="">
								${vo.originLocation}
								</td>
								<td width="">
								${vo.destLocation}
								</td>
								<td width="10%"><img src="images/edit.gif" title="操 作" class="btnImg"
onClick="javascript:redirect('<c:url value='DeliveryOrderMainAction.do?method=displayDeliveryOrderUpdateScreen&id=${vo.id}'/>')" ></td>
								</tr>
								 </c:forEach>  
							</tbody>
							<tfoot>
								<tr>
									<td colspan="35"></td>
								</tr>
							</tfoot>
						</table>
				</html:form>
				<script type="text/javascript"> var st = new
				SortableTable( document.getElementById("itemsList"),
				["None","String","String","String","String","String","String","String","String","String","String","String","None",],'#FFFFCC','#FFFFFF','#B1C3D9'); </script>
			</div>
		</body>
	</html>
